import http from "../../util/http";
const  module={
  namespaced:true,
  state: {
    cinemasList: [],
  },
  mutations: {
    setCinemasList(state, list) {
        state.cinemasList = list;
      },
  },
  //处理异步操作
  actions: {
     //获取影院信息
     getCineamsList(store, cityId) {
        http({
          url: `/gateway?cityId=${cityId}&ticketFlag=1&k=1251968`,
          headers: {
            "X-Host": "mall.film-ticket.cinema.list",
          },
        }).then((res) => {
          store.commit("setCinemasList", res.data.data.cinemas);
        });
      },
  }
}
export default module;